package com.qf.myboot.Result;
//接口返回的信息
public class ResponseData {
    //状态码
    private String ecode;

    private String erroInfo;

    private Object data;

    public ResponseData(String ecode, String erroInfo, Object data) {
        this.ecode = ecode;
        this.erroInfo = erroInfo;
        this.data = data;
    }
    public ResponseData(ResultCode resultCode,Object data) {
        this.ecode = resultCode.getEcode();
        this.erroInfo = resultCode.getErrorInfo();
        this.data=data;
    }

    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getErroInfo() {
        return erroInfo;
    }

    public void setErroInfo(String erroInfo) {
        this.erroInfo = erroInfo;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
